
bm25Set = set();
bm25_query_file = open('bm25_query', 'r');
for line in bm25_query_file:
    bm25Set.add(line.strip());
bm25_query_file.close();
all_query_file = open('all_query.set', 'r');
all_query_file.readline();
for line in all_query_file:
    li = line.strip().split('\t');
    if li[0] not in bm25Set:
        print '%s\t%s\t%s' %(li[0], li[2], bool(li[1]));
